﻿#include "prj_task_edit_dialog.h"
#include "ui_prj_task_edit_dialog.h"

PrjTaskEditDialog::PrjTaskEditDialog(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::PrjTaskEditDialog)
{
    ui->setupUi(this);
}

PrjTaskEditDialog::~PrjTaskEditDialog()
{
    delete ui;
}

void PrjTaskEditDialog::setTaskName(QString taskName)
{
    ui->taskNameLineEdit->setText(taskName);
}

void PrjTaskEditDialog::setTaskDescription(QString taskDescription)
{
    ui->taskDescriptionTextEdit->setText(taskDescription);
}

QString PrjTaskEditDialog::getTaskName()
{
    return ui->taskNameLineEdit->text();
}

QString PrjTaskEditDialog::getTaskDescription()
{
    return ui->taskDescriptionTextEdit->toPlainText();
}
